px = int(input())
py = int(input())
qx = int(input())
qy = int(input())
rx = int(input())
ry = int(input())
sx = int(input())
sy = int(input())
pq = (qx-px, qy-py)
rs = (rx-sx, ry-sy)
if pq[0]*rs[1]-pq[1]*rs[0] == 0:
    print("Yes")
else:
    print("No")